package com.cssl.fmmall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data //结果封装类
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Result对象",description = "封装接口返回给前端的数据")
public class Result<T> implements Serializable {
    //相应给前端的状态码
    @ApiModelProperty(value = "响应状态码",dataType = "Integer")
    private Integer code;
    //提示信息
    @ApiModelProperty(value = "提示信息")
    private String mess;
    //返回数据
    @ApiModelProperty(value = "响应数据")
    private Object data;


}
